package com.tyl.single单例模式;

/**
 * @author 饿汉单单例模式
 */
public class Hungry {

    /**浪费空间**/
    private  byte[] date1=new byte[1024*1024];
    private  byte[] date2=new byte[1024*1024];
    private  byte[] date3=new byte[1024*1024];
    private  byte[] date4=new byte[1024*1024];
    private  Hungry(){
    }
    private final static Hungry HUNGRY=new Hungry();
    public  static Hungry getInstance(){
        return HUNGRY;
    }
}
